import { createApp } from 'vue'
import App from './App.vue'
import Antd from 'ant-design-vue'
import request from './utils/request'
import 'ant-design-vue/dist/reset.css';
import icons from '@ant-design/icons-vue'
import router from './router'
import bus from "@/utils/mitt";
import { createPinia } from 'pinia'

const pinia = createPinia()
const app = createApp(App)
app.config.globalProperties.$http = request

app.use(Antd, icons)
    .use(router) // 路由单独放置，不要与其他组建一起放置
    .use(bus)
    .use(pinia)
    .mount('#app');


